<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form:form commandName="model" cssClass="validate"
	id="costAccountingEntryForm" action="project/costAccountingEntry/save">
	<form:hidden path="id" />
	<form:hidden path="relationId" />
	<form:hidden path="projectId" />
	<div class="header">
		<h3>&nbsp;&nbsp;基本信息</h3>
	</div>

	<table class=" form-table">
		<tbody>
			<tr>
				<td class="td1">费用类型：</td>
				<td class="td2"><form:select path="costTemplateId"
						cssClass="required" data-width="260px">
						<c:forEach items="${projCostTemplates }" var="projCostTemplate">
							<form:option value="${projCostTemplate.id }">${projCostTemplate.subject_name }
							</form:option>
						</c:forEach>
					</form:select></td>

			</tr>
			<tr>
				<td class="td1">金额：</td>
				<td class="td2"><form:input path="amount"
						cssClass="required number" />(元)</td>
			</tr>
			<tr>
				<td class="td1">经办人：</td>
				<td class="td2"><form:hidden path="handlerId" /> <isperp:departmentUser
						displayValueCssClass="required" id="handlerIdSelector"
						displayValue="${model.handlerName}" name="handlerName"
						valueControlId="handlerId"></isperp:departmentUser></td>
			</tr>
			<tr>
				<td class="td1">发生日期：</td>
				<td class="td2"><form:input path="occurrenceDate" type="date"
						cssClass="required" />
				</td>
			</tr>
			<tr>
				<td class="td1">备注：</td>
				<td class="td2"><form:textarea path="memo" />
				</td>
			</tr>

		</tbody>
	</table>

</form:form>

<isperp:buttonList>
	<button class="submit" onclick="isperp.submitForm(); return false;">
		<span class="icon icon-save"></span>保存
	</button>
</isperp:buttonList>

